// 获取当前时间
let a = new Date();

// ISO 标准时间格式  yyyy-MM-ddTHH:mm:ss.ffff
// yyyy-MM-ddTHH:mm:ss
let iso = a.toJSON();
let unix = a.getTime();

let b = new Date("2023-03-22T16:58:31");
// Unix timestamp
let c = new Date(1679475752343)

//  hh gg dd ls 2
// Regex  pattern regular expression
let o =/^[a|b|c|d|e]{2}$/;
let ss = ["aa","cc","abc","22"];
for (let i = 0; i < ss.length; i++) {
    if(o.test(ss[i])){
        console.log("xxxxx  "+ss[i]);
    }
}
// 100 -999 
let o2 = /^[0-9]{3}$/
